package managesystem;

import java.io.IOException;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

public class LogOutStudentServlet extends HttpServlet {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public void doGet(HttpServletRequest req,HttpServletResponse resp){
		HttpSession session = req.getSession();
		session.setAttribute("currStud", null);
		try {
			resp.sendRedirect("/index.jsp");
		} catch (IOException e) {
			
			e.printStackTrace();
		}
	}

}
